Script API

Getting Started

Introduction LiquidBounce's script API is based on GraalJS, an ECMAScript 2023 compliant JavaScript implementation built on GraalVM. GraalVM's polyglot functionality enables seamless interoperation between scripts written in JavaScript and the client written in Java and Kotlin. This integration faci...

Using Java Classes

Using Java classes As established in the Getting Started Guide, the GraalJS JavaScript engine used by LiquidBounce's script API allows easy interoperation with Java code. Classes from the game and the Java standard library can be imported and used similarly to how you would in Java. This functionali...

Global Classes

Global Instances

Global instances The following instances (variables) are available globally in the script. mc Shorthand for MinecraftClient.getInstance(). Contains most methods and fields used to interact with the client; most importantly, mc.player....

Creating Modules

Creating Commands

Creating Commands Commands created using the script API behave exactly like builtin commands. In contrast to modules, commands are intended to perform one well-defined action once when they are executed. Registering a command Just like modules, commands have to be registered with the client. This mu...